
import request from '@/utils/request'



// 生成购买订单
export function postHttpQuest(url: string, data: any) {
    return request({
        url: url,
        method: 'post',

        data
    });
}

export function getStrHttpQuest(url: string, params: any) {
    return request({
        url: url,
        method: 'get',
        params,

    })
}



export function postHttpQuestImg(url: string, data: any) {
    return request({
        url: url,
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data', // 重要：确保设置正确的头部
        },
        data
    });
}


